//
//  LocationPickerViewController.h
//  StanfordEvents
//Î
//  Created by Gongmyung on 7/7/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "DDAnnotation.h"
#import "DDAnnotationView.h"

@protocol LocationPickerViewDelegate <NSObject>
@required
- (void)setLocation:(NSString*)location withLatitude:(double)latitude withLogitude:(double)longitude;
- (UINavigationController *)navController;          // Return the navigation controller
@end

@interface LocationPickerViewController : UIViewController <CLLocationManagerDelegate, MKMapViewDelegate, MKReverseGeocoderDelegate> {
    IBOutlet MKMapView *myMapView;
    
    id <LocationPickerViewDelegate> delegate;
    
    //stuff for annotations
    NSMutableSet *				_annotations;
	CLLocationManager *			_locationManager;
	MKReverseGeocoder *			_reverseGeocoder;
    
    //textfield for inputting location
    UITextField *myTextField;
}

@property (nonatomic, retain) IBOutlet MKMapView *myMapView;
@property (nonatomic, retain) id <LocationPickerViewDelegate> delegate;
@property (nonatomic, retain) NSMutableSet *				annotations;
@property (nonatomic, retain) CLLocationManager *			locationManager;
@property (nonatomic, retain) MKReverseGeocoder *			reverseGeocoder;

@end
